<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>书籍详情</title>
    <link rel="stylesheet" href="static/css/base.css">
    <style>
        body {
            background-color: #f2f2f2; /* 更换背景颜色 */
            font-family: Arial, sans-serif; /* 设置通用字体 */
        }
        .container {
            background-color: #ffffff;
            margin: 50px auto; /* 调整页面居中显示 */
            width: 60%;
            padding: 20px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
            border-radius: 8px; /* 圆角边框 */
        }
        h1 {
            text-align: center;
            color: #007bff; /* 修改标题颜色 */
        }
        .msg {
            margin-top: 20px;
            font-size: 18px;
        }
        .msg p {
            text-align: left;
            font-size: 20px;
        }
        .msg .p1 {
            font-size: 16px;
            margin-bottom: 10px;
        }
        button {
            display: block;
            margin: 20px auto;
            padding: 10px 20px;
            font-size: 18px;
            background-color: #007bff;
            color: #ffffff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
        button:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
<div class="container">
    <h1>《${requestScope.book.name}》</h1>
    <div class="msg">
        <p>${requestScope.book.intro}</p>
        <div style="display: flex; justify-content: space-between;">
            <div>
                <div class="p1">
                    作者：${requestScope.book.author}
                </div>
                <div class="p1">
                    出版社：${requestScope.book.press}
                </div>
            </div>
            <div>
                <div class="p1">
                    ISBN：${requestScope.book.isbn}
                </div>
                <div class="p1">
                    单价：${requestScope.book.price}
                </div>
            </div>
        </div>
    </div>
    <button onclick="back()">返回</button>
</div>
<script>
    function back() {
        window.location =  "index.jsp"
    }
</script>
</body>

</html>
